﻿var oldgridSelectedColor;
var oldgridSelectedTextColor;

function setMouseOverColor(element) {

    oldgridSelectedColor = element.style.backgroundColor;
    oldgridSelectedTextColor = element.style.color;
    element.style.backgroundColor = '#d1dbff';
    element.style.color = '#336';
    element.style.cursor = 'hand';
}

function setMouseOutColor(element) {

    element.style.backgroundColor = oldgridSelectedColor;
    element.style.color = oldgridSelectedTextColor;
}